#ifndef MONITORINGREALTABMODEL_H
#define MONITORINGREALTABMODEL_H

#include <QAbstractTableModel>
#include "MonitoringDataModel.h"
#include <QList>
class MonitoringRealTabModel: public QAbstractTableModel
{
    Q_OBJECT
public:
    MonitoringRealTabModel(QObject *parent = nullptr);
    int rowCount(const QModelIndex &parent = QModelIndex()) const override;
    int columnCount(const QModelIndex &parent = QModelIndex()) const override;
    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
    QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
    void updateAllDeviceList(const QList<MonitoringDataModel> &newList);
private:
    QList<MonitoringDataModel>dataList;
};

#endif // MONITORINGREALTABMODEL_H
